package com.xl.variable;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: lei·xie
 * @Created: 2024/3/12 0012 10:23
 */
public class ASCIIDemo {
    public static void main(String[] args) {
        //掌握ASCII编码表的编码特点
        System.out.println('a'+10); //97+10=107
        System.out.println('A'+10); //65+10=75
        System.out.println('0'+10); //48+10=58

        //二进制 八进制 十六进制
        int a1 = 0B01100001; //二进制以0B/0b开头
        System.out.println(a1);
        int a2 = 0141; //八进制以0开始
        System.out.println(a2);
        int a3 = 0x61; //十六进制以0x/0x开头
        System.out.println(a3);

    }
}
